package com.dragee.modules.work.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.utils.excel.FieldDispose;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 拼团
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-07-08 21:23:17
 */
@Data
@TableName("t_order_group")
public class OrderGroupEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ExcelIgnore
    private Long id;

    private String groupId;
    /**
     * 店铺
     */
    @ExcelProperty(value = "店铺")
    @FieldDispose(value = "shopId")
        private String shopId;
    /**
     * 品相
     */
    @ExcelProperty(value = "品相")
    @FieldDispose(value = "projectId")
        private String projectId;
    /**
     * 订单
     */
    @ExcelProperty(value = "订单")
    @FieldDispose(value = "orderId")
        private String orderId;
    /**
     * 顾客
     */
    @ExcelProperty(value = "顾客")
    @FieldDispose(value = "customer")
        private String customer;
    /**
     * 顾客手机号
     */
    @ExcelProperty(value = "顾客手机号")
    @FieldDispose(value = "customerTel")
        private String customerTel;
    /**
     * 成团人数
     */
    @ExcelProperty(value = "成团人数")
    @FieldDispose(value = "needNum")
        private String needNum;
    /**
     * 状态 未成团 已成团
     */
    @ExcelProperty(value = "状态 未成团 已成团")
    @FieldDispose(value = "status")
        private String status;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private String createBy;

    private String roleName;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;
    /**
     * 排序字段
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long sort;
    }